#ifndef WHALETABBASE_H
#define WHALETABBASE_H

// #include "whaleplugin.h"

#include <QWidget>

class QString;
class TabInterface;

// all tab plugins should use this class as a tab base
// or inherit a child class of WhaleTabBase
class WhaleTabBase : public QWidget {
    Q_OBJECT

    public: 
        WhaleTabBase( QWidget * parent = 0 );
        void setPlugin( TabInterface * ); // associate plugin with tab
        TabInterface * plugin(); // return associated plugin

    public slots:
        void close();

    signals: 
        void closed();
        
    private:
        TabInterface * mPlugin;
};

#endif
